<?xml version="1.0" encoding="ISO-8859-1"?>
<ui:composition 
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:pcc="http://java.sun.com/jsf/composite/pcc"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:icecore="http://www.icefaces.org/icefaces/core"
    xmlns:ice="http://www.icesoft.com/icefaces/component"
    xmlns:fmt="http://java.sun.com/jsp/jstl/fmt">
	
	<h:commandLink value="#{serviquality['link.refreshTree']}" visible="#{fcTabsPlantilla.tabbedConfigurarPlantillaVisible}" action="${fcConfigurarPlantilla.refreshPlantilla}" rendered="true" immediate="true"/>
	<ice:tree id="plantillaTree"
              value="#{fcConfigurarPlantilla.plantillaTreeModel}"
              var="node"
              hideRootNode="false"
              hideNavigation="false"
              imageDir="#{facesContext.externalContext.requestContextPath}/themes/images/tree/"
              rendered="#{fcTabsPlantilla.tabbedConfigurarPlantillaVisible}">
        <ice:treeNode>
            <f:facet name="icon">
                <ice:panelGroup
                        style="display: inline" >
                    <ice:graphicImage
                         value="#{facesContext.externalContext.requestContextPath}/themes/images/tree/#{node.userObject.icon}"/>
                </ice:panelGroup>
            </f:facet>
            <f:facet name="content">
                <ice:panelGroup
                        styleClass="selectedNode#{node eq fcConfigurarPlantilla.dmTreeNodeSelected}"
                        style="display: inline" >
                    <ice:commandLink
                            actionListener="#{fcConfigurarPlantilla.nodeSelected}">                       
                        <f:param name="idNodo" value="#{node.userObject.id}" />
                        <ice:outputText id="TreeNode" value="#{node.userObject.text}"/>
                    </ice:commandLink>
                </ice:panelGroup>
            </f:facet>
        </ice:treeNode>
    </ice:tree>
</ui:composition>